<?php
try {
    $res  = popen("ls /tmp", "r");
    $read = fread($res, 1024);
    echo "<pre>";
    print_r($read);
    echo "</pre>";
    pclose($res);
} catch (\Phalcon\Exception $e) {
    var_dump($e->getMessage());die();
}
